import request from '@/utils/request'

// 获取角色ID查询分配菜单IDS
export function getMenuIdListByRoleId(roleId) {
  return request({
    url: '/auth/role/menu/getMenuIdListByRoleId/' + roleId,
    method: 'get'
  })
};

// 分配菜单
export function assignmentMenu(data) {
  return request({
    url: '/auth/role/menu/assignmentMenu',
    method: 'post',
    data
  })
};